home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 1 / PC Actual CD 01.iso / share / dos / progr / micro_c.arj / WINDOW.H < prev   
Encoding:
C/C++ Source or Header  |  1993-10-05  |  2.7 KB  |  79 lines

  1. /*
  2.  * DDS MICRO-C IBM/PC Window Library definitions
  3.  *
  4.  * Copyright 1990-1993 Dave Dunfield
  5.  * All rights reserved.
  6.  */
  7.  
  8. /* General keys */
  9. #define _KUA    0xff80            /* Up    arrow    */
  10. #define _KDA    0xff81            /* Down  arrow    */
  11. #define _KLA    0xff82            /* Left  arrow    */
  12. #define _KRA    0xff83            /* Right arrow    */
  13. #define _KPU    0xff84            /* PgUp            */
  14. #define _KPD    0xff85            /* PgDn            */
  15. #define _KHO    0xff86            /* Home            */
  16. #define _KEN    0xff87            /* End            */
  17. #define _KKP    0xff88            /* Keypad '+'    */
  18. #define _KKM    0xff89            /* Keypad '-'    */
  19. #define _KIN    0xff8a            /* Insert key    */
  20. #define _KDL    0xff8b            /* Delete key    */
  21. #define _KBS    0xff8c            /* Backspace    */
  22. /* Functions keys */
  23. #define _K1        0xff8d            /* Function 1    */
  24. #define _K2        0xff8e            /* Function 2    */
  25. #define _K3        0xff8f            /* Function 3    */
  26. #define _K4        0xff90            /* Function 4    */
  27. #define _K5        0xff91            /* Function 5    */
  28. #define _K6        0xff92            /* Function 6    */
  29. #define _K7        0xff93            /* Function 7    */
  30. #define _K8        0xff94            /* Function 8    */
  31. #define _K9        0xff95            /* Function 9    */
  32. #define _K10    0xff96            /* Function 10    */
  33. /* Special control keys */
  34. #define _CPU    0xff97            /* Control PgUp */
  35. #define _CPD    0xff98            /* Control PgDn */
  36. #define _CHO    0xff99            /* Control Home */
  37. #define _CEN    0xff9a            /* Control End  */
  38.  
  39. /*
  40.  * Window open attributes
  41.  */
  42. #define    WSAVE        0x8000        /* Save/Restore screen */
  43. #define    WBOX1        0x4000        /* Enable enclosing BORDER type 1 */
  44. #define    WBOX2        0x2000        /* Enable enclosing BORDER type 2 */
  45. #define    WBOX3        0x6000        /* Enable enclosing BORDER type 3 */
  46. #define    WCOPEN        0x1000        /* Clear window when opened */
  47. #define    WCCLOSE        0x0800        /* Clear window when closed */
  48. #define    WLF            0x0400        /* Disable NEWLINE, LF only */
  49. #define    WSCROLL        0x0200        /* Enable scrolling */
  50. #define    WWRAP        0x0100        /* Enable line=wrap */
  51.  
  52. /*
  53.  * Video attribute bit definitions
  54.  */
  55. #define BLINK        0x80        /* Blinking video modes */
  56. #define INTENSE        0x08        /* Intensity control */
  57.  
  58. /*
  59.  * Color video attribute bits (Color adapters only).
  60.  * The individual RED, GREEN and BLUE bits may be combined
  61.  * to provide 8 distinct foreground and background colors.
  62.  * Note: INTENSE bit affects foreground colors only.
  63.  */
  64. #define F_RED        0x04        /* Foreground RED */
  65. #define F_GREEN        0x02        /* Foreground GREEN */
  66. #define F_BLUE        0x01        /* Foreground BLUE */
  67. #define B_RED        0x40        /* Background RED */
  68. #define B_GREEN        0x20        /* Background GREEN */
  69. #define B_BLUE        0x10        /* Background BLUE */
  70.  
  71. /* Monochrome video attributes (Monochrome adapters only) */
  72. #define    NORMAL        0x07        /* Monochrome normal video */
  73. #define REVERSE        0x70        /* Monochrome reverse video */
  74. #define UNDERLINE    0x01        /* Monochrome underline video */
  75.  
  76. extern int        W_BASE;
  77. extern char        *W_OPEN;
  78. extern register    wform(), wprintf(), w_printf();
  79.